package com.vnas.utils;

import java.util.Calendar;

public class Utils {

	public static int getCurDay()
	{
		
		Calendar c = Calendar.getInstance();
		return c.get(Calendar.DAY_OF_MONTH);
		
	}
	
	
	public static int getCurMonth()
	{
		
		Calendar c = Calendar.getInstance();
		return c.get(Calendar.MONTH) + 1;
		
	}
	
	public static int getMaxDayOfMonth(int m)
	{
		Calendar c = Calendar.getInstance();
		return c.getActualMaximum(m);
	}
	public static int getCurYear()
	{
		
		Calendar c = Calendar.getInstance();
		return c.get(Calendar.YEAR);
		
	}
}
